//
//  ModelOfDiscountSpecificSearchResult.m
//  FreeTravel
//
//  Created by 徐康 on 16/9/2.
//  Copyright © 2016年 KX. All rights reserved.
//

#import "ModelOfDiscountSpecificSearchResult.h"

@implementation ModelOfDiscountSpecificSearchResult

- (void)setValue:(id)value forKey:(NSString *)key{
    if ([key isEqualToString:@"self_use"]) {
        self.self_use = [value integerValue];
    }if ([key isEqualToString:@"first_pub"]) {
        self.first_pub = [value integerValue];
    }if ([key isEqualToString:@"perperty_today_new"]) {
        self.perperty_today_new = [value integerValue];
    }if ([key isEqualToString:@"productType"]) {
        self.productType = value;
    }if ([key isEqualToString:@"title"]) {
        self.title = value;
    }if ([key isEqualToString:@"pic"]) {
        self.pic = value;
    }if ([key isEqualToString:@"price"]) {
        self.price = value;
    }if ([key isEqualToString:@"booktype"]) {
        self.booktype = value;
    }if ([key isEqualToString:@"firstpay_end_time"]) {
        self.firstpay_end_time = value;
    }if ([key isEqualToString:@"end_date"]) {
        self.end_date = value;
    }if ([key isEqualToString:@"feature"]) {
        self.feature = value;
    }if ([key isEqualToString:@"list_price"]) {
        self.list_price = value;
    }if ([key isEqualToString:@"buy_price"]) {
        self.buy_price = value;
    }if ([key isEqualToString:@"sale_count"]) {
        self.sale_count = value;
    }if ([key isEqualToString:@"lastminute_des"]) {
        self.lastminute_des = value;
    }if ([key isEqualToString:@""]) {
        self.url = value;
    }if ([key isEqualToString:@"departureTime"]) {
        self.departureTime = value;
    }
}
- (void)setValue:(id)value forUndefinedKey:(NSString *)key{
    if ([key isEqualToString:@"id"]) {
        self.ID = value;
    }
}
@end
